﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace Sino.CapacityCloud.Repositories.Models
{

    public class FriendRelationship
    {

        [Key()]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string FriendRelationshipId { get; set; }

        public string UserId { get; set; }

        public string FriendId { get; set; }

        public virtual ApplicationUser User { get; set; }

        public virtual ApplicationUser Friend { get; set; }

        public FriendRelationship()
        {
            this.FriendRelationshipId = Guid.NewGuid().ToString();
        }

    }

}